import { createWebHistory, createRouter } from 'vue-router'

import Home from '../components/Home.vue'
import FansRank from '../components/FansRank.vue'
import TotalFans from '../components/TotalFans.vue'

const routes = [
  { path: '/', component: Home,alias: '/home' },
  { path: '/fans', component: FansRank },
  { path: '/tfans', component: TotalFans }
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router